package com.kongge.viewdisplayframeworklib.view;

import android.app.Activity;
import android.os.Bundle;
import android.view.ViewGroup;

import com.kongge.viewdisplayframeworklib.R;
import com.kongge.viewdisplayframeworklib.view.TabWidget.TabListener;

public class TabActivity extends Activity implements TabListener {

	protected NavigateBar mNavigateBar;
	protected ViewGroup pageContent;
	protected TabWidget tabCtrl;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.view_display_hexin_view);
		mNavigateBar = (NavigateBar) findViewById(R.id.page_title_bar);
		pageContent = (ViewGroup) findViewById(R.id.page_content);
		tabCtrl = (TabWidget) findViewById(R.id.bottom_tabbar);
		tabCtrl.setTabListener(this);

	}

	@Override
	public void onClick(int oldIndex, int newIndex) {
		// TODO Auto-generated method stub
		onTabBarClick(oldIndex, newIndex);
	}

	public void onTabBarClick(int oldIndex, int newIndex) {

	}

}
